<%@ page contentType="text/html; charset=utf-8" language="java" errorPage="" %>
<%@ page import="javax.naming.Context"%> 
<%@ page import="javax.sql.DataSource"%> 
<%@ page import="javax.naming.InitialContext"%> 
<%@ page import="java.sql.*"%> 
<%@page import="dataconn.DbWrapper;"%> 
<%
request.setCharacterEncoding("utf-8");
String ProjectID=request.getParameter("ProjectID");
if (ProjectID == null || ProjectID.equals(""))
{
out.print("参数错误！");
out.print("<a href='NewProject.jsp'>返回</a>");
return;
}
String ProjectName=request.getParameter("ProjectName");
String sql="update TestProject set ProjectName='"+ProjectName+"'where ProjectID="+ProjectID;
DbWrapper.executeUpdate(sql);
%>
<%
response.sendRedirect("ManageProject.jsp?ProjectID="+ProjectID);
%>